// 园区管理
import request from '@/utils/request'
// 查看月卡信息列表
export function getCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    params
  })
}
// 添加月卡
export function addCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'POST',
    data
  })
}
// 删除月卡
export function delCardAPI(ids) {
  return request({
    url: '/parking/card/' + ids.join(','),
    method: 'DELETE'
  })
}
// 获取编辑页月卡详情
export function geteditAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`
  })
}
// 编辑月卡
export function editAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'PUT',
    data
  })
}
// 添加月卡
export function renewCardAPI(data) {
  return request({
    url: '/parking/card/recharge',
    method: 'POST',
    data
  })
}
// 查看月卡详情
export function getviewCardAPI(id) {
  return request({
    url: '/parking/card/' + id
  })
}
